
package org.darcy.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.darcy.framework.model.PageParam;
import org.darcy.entity.SysSocialConfig;

@ApiModel("社会化登录应用: SysSocialConfigModel")
@Getter
@Setter
public class SysSocialConfigModel extends PageParam implements Serializable{
	
	private static final long serialVersionUID = 1L;
     
    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value="")
	private Long id;
	
    @ApiModelProperty(value="应用ID")
	private String clientId;
	
    @ApiModelProperty(value="应用密钥")
	private String clientSecret;
	
    @ApiModelProperty(value="认证成功后跳转的地址")
	private String redirectUri;
	
    @ApiModelProperty(value="应用名")
	private String platformName;
	
    @ApiModelProperty(value="第三方平台")
	private String platform;
	
    @ApiModelProperty(value="应用 LOGO")
	private String logo;
	
    @ApiModelProperty(value="支付宝公钥")
	private String alipayPublicKey;
	
    @ApiModelProperty(value="是否需要申请unionid")
	private Boolean unionId;
	
    @ApiModelProperty(value="Stack Overflow Key")
	private String stackOverflowKey;
	
    @ApiModelProperty(value="授权方的网页应用ID")
	private String agentId;
	
    @ApiModelProperty(value="授权范围")
	private String scope;
	
    @ApiModelProperty(value="当前配置是否可用")
	private Boolean available;
	
    @ApiModelProperty(value="记录创建时间")
	private Date createTime;
	
    @ApiModelProperty(value="记录更新时间")
	private Date updateTime;
	
    
    /**
   	 * model类转化为mybatis plus 查询条件
   	 */
   	public QueryWrapper<SysSocialConfig> buildWrapper() {
   		QueryWrapper<SysSocialConfig> p = new QueryWrapper<SysSocialConfig>();
   		return p;
   	}

}
